<?php

namespace common\models\expcenter;

use common\models\BaseModel;

class ExpCenterModel extends BaseModel {

    public $uid;
    public $username;
    public $pwd;
    public $status;
    public $created_on;
    public $created_by;
    public $modified_on;
    public $modified_by;

	public function __construct($config = array()) {
        parent::__construct($config);
	}    
    
    public function rules () {
        return [
            [['username'], 'required', 'on' => 'save'],
            [['username'], 'string', 'max' => 30, 'on' => 'save'],
            [['pwd'], 'required', 'on' => 'save'],
            [['pwd'], 'string', 'max' => 30, 'on' => 'save'],
            [['uid','status','created_on', 'modified_on'], 'integer', 'on' => 'save'],
            [['created_by', 'modified_by'], 'safe', 'on' => 'save'],
        ];
    }
    
    public function attributeLabels(){
        return [
            "username"=>"用户名",
            "pwd"=>"密码",
            "status"=>"status",
            "created_on"=>"created_on",
            "created_by"=>"created_by",
            "modified_on"=>"modified_on",
            "modified_by" => "modified_by"
        ];
    }
    
}